﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace AESUtil
{
    /// <summary>
    /// SetHistoryName.xaml 的交互逻辑
    /// </summary>
    public partial class SetHistoryName : Window
    {
        public String name {  get; set; }
        public SetHistoryName()
        {
            InitializeComponent();
        }

        private void saveClick(object sender, RoutedEventArgs e)
        {
            this.name = this.nameTextBox.Text;
            this.DialogResult = true;
        }

        private void setHistoryNameWindowsLoaded(object sender, RoutedEventArgs e)
        {
            if (this.name != null)
            {
                this.nameTextBox.Text = this.name;
            }
            else
            {
                this.nameTextBox.Text = "未命名";
            }
        }
    }
}
